package com.hl.service.serviceImpl;

import com.hl.domain.Articletype;
import com.hl.mapper.ArticletypeMapper;
import com.hl.mapper.TeacherlevelMapper;
import com.hl.service.ArticletypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author：王祖威
 * @Date ：2024/9/11 19:34
 */
@Service
public class ArticletypeServiceImpl implements ArticletypeService {
    @Autowired
    private ArticletypeMapper articletypeMapper;

    @Override
    public List<Articletype> findAll() {
        return articletypeMapper.findAll();
    }

    @Override
    public List<Articletype> findlike(String name) {
        return articletypeMapper.findlike(name);
    }

    @Override
    public int deleteByPrimaryKey(Long id) {
        return articletypeMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insertSelective(Articletype record) {
        return articletypeMapper.insertSelective(record);
    }

    @Override
    public int updateByPrimaryKeySelective(Articletype record) {
        return articletypeMapper.updateByPrimaryKeySelective(record);
    }
}
